name = "ywc"

print(name[2])

name2 = ["ywc", "1a", "2b", "3c", "4d", "5f", "6g"]  # 定义一个列表

for temp in name2:
    print(temp, end=" ")

print("name2[3]=" + name2[3])

print("name2[-0]=" + name2[-0] + ",name[0]=" + name2[0])

print("name2[-1]=" + name2[-1])

print("name[2：5]=" + name[2:5])

print(name2[2:-1])

print("列表类型 %s" % type(name2))
print(type(name2))
type(name2)  # 无输出
